﻿using FluentScheduler;

namespace TKT.Lifter.CIM.Lifter.FluentScheduler
{
    public class StatisticTimeRegistry : Registry
    {
        public StatisticTimeRegistry()
        {
            this.RegistryJob();
        }
        public void RegistryJob()
        {
            //在每天的晚上12点记录一次统计时间
            Schedule<StatisticTimeJob>().ToRunEvery(0).Days().At(00, 00);

            //清除一次数据表
            Schedule<ClearDataBasesFromJob>().ToRunEvery(0).Days().At(00, 00);
        }
    }
}
